package com.soft.javase.day06.object.equals;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/24
 */
public class TestStudent {
    public static void main(String[] args) {
        StudentSystem system = new StudentSystem();

        Student s1 = new Student("张三", "2020001");
        Student s2 = new Student("李四", "2020002");
        Student s3 = new Student("张三", "2020001");
        Student s4 = new Student("王五", "2020003");
        Student s5 = new Student("张三", "2020004");
        Student s6 = new Student("赵六", "2020001");

        System.out.println("添加张三(2020001): " + system.addStudent(s1));
        System.out.println("添加李四(2020002): " + system.addStudent(s2));
        System.out.println("再次添加张三(2020001): " + system.addStudent(s3));
        System.out.println("添加王五(2020003): " + system.addStudent(s4));
        System.out.println("添加同名不同号张三(2020004): " + system.addStudent(s5));
        System.out.println("添加同号不同名赵六(2020001): " + system.addStudent(s6));

    }
}
